Repository navigation
docs(compass): design message fan-out cost estimate and confirm gate (RIG-1713) - #23
Open
rigel-mintaka wants to merge 2 commits into
Open
rigel-mintaka wants to merge 2 commits into
rigel-mintaka wants to merge 2 commits into
Conversation
…(RIG-1713) Moved from RigelBuild/compass#2120 under the design-records-to-docs-repo directive. Co-authored-by: Matt Wilkinson <matt@rigel.build>
rigel-mintaka
force-pushed
the
compass-comms/rig-1713-message-cost-design
branch
from
October 18, 2026 14:52
51d7bd0 to
a390b30
Compare
|
Rigel public design docs preview: https://compass-comms-rig-1713-messa.docs-2ui.pages.dev Deployed from |
The compass design records this record builds on now live here, and the compass blob URLs 404. Point the links at the in-repo copies. Co-authored-by: Matt Wilkinson <matt@rigel.build>
rigel-mintaka
marked this pull request as ready for review
October 18, 2026 14:59
Contributor
Author
|
Head note at
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moved
docs/designs/compass/.mainblob URLs.Summary
Design record for RIG-1713: a server-side cost estimate for agent posts, and a hold-and-confirm gate when the estimate is over an operator threshold. It also adds hard limits that a confirm cannot bypass. Human posts are never gated.
Record:
docs/designs/agent/compass-message-cost-gate/design.mdDecisions
fanout_tokens: per placed recipient,m + turnOverhead (2000), or justmwhen the recipient is mentioned and WORKING (a steer). Batched messages are not counted. Context re-load is reported asreload_tokensand never gated.PostAsAccountByNameover fan-out's recipient set. The mention body moves into package comms.COMPASS_MESSAGE_COST_THRESHOLD, compared tofanout_tokens. Default 100000 (proposed); 0 turns it off. A gate outcome counter.client_request_idand restampsturn_sequence.estimate_only,confirmed_estimate_tokens) andMessageCostEstimate. Every agent post is gated; noaccepts_hold.Matt's review (7 inline comments, all answered in thread)
accepts_hold: taken.Open question for Matt
OQ1 (load-bearing): default numbers on the new
fanout_tokensunit.The Plan builds (a), and OQ1 lists exactly what to drop for (b) or (c). This PR must not merge until OQ1 is ruled and folded in.
Review
Checks
Spec-impact: none
Ledger-impact: adds DL-459 to DL-465, DL-470, DL-471 (docs/designs/decisions/agent/)
Refs RIG-1713
Co-authored-by: Matt Wilkinson matt@rigel.build